import java.util.ServiceLoader;

import com.ljh.spi.HelloInterface;

public class SpiMain {
	public static void main(String[] args) {
		ServiceLoader<HelloInterface> loaders = ServiceLoader.load(HelloInterface.class);
		for (HelloInterface in : loaders) {
			in.sayHello();
		}
	}
}
